/*
 * Copyright (c) 2024 Black Sesame Technologies
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef _DAL_WRITE_PARAMS_H_
#define _DAL_WRITE_PARAMS_H_

#include "dal/guid.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @file write_params.h
 * @brief Structures in this file is only useful in FastDDS
 */
typedef struct dal_seq_num_s
{
    int32_t high;
    uint32_t low;
} dal_seq_num_t;

typedef struct dal_sample_identity_s
{
    dal_guid_t writer_guid;
    dal_seq_num_t sequence_number;
} dal_sample_identity_t;

typedef struct dal_write_params_s
{
    dal_sample_identity_t sample_identity;
    dal_sample_identity_t related_sample_identity;
} dal_write_params_t;

#ifdef __cplusplus
}
#endif

#endif  // _DAL_WRITE_PARAMS_H_